const sequelize = require('../db');
const { DataTypes } = require('sequelize');

// 创建文件夹表
// id 
// name  文件夹名
// color  颜色
// isDelete  是否可删除
const folder = sequelize.define(
    'folder',
    {
        name: {
            type: DataTypes.STRING,
            allowNull: false,
        },
        color: {
            type: DataTypes.STRING,
            allowNull: false,
        },
        isDelete: {
            type: DataTypes.BOOLEAN,
        }
    },
    {
        createdAt: 'creatiedTime',
        updatedAt: 'updateTime',
    }
);

module.exports = folder;